using LitFramework;
using UnityEngine;
using TMPro;

public class LoadingPanel : MonoBehaviour
{
    public TMP_Text tmpContent;
    public RectTransform content;

    public float totalLength;

    private void Update()
    {
        tmpContent.text = GameManager.Instance.InitState;
        var progress = GameManager.Instance.InitProgress;
        var length = totalLength * progress;
        content.sizeDelta = new Vector2(length, content.sizeDelta.y);
    }

    private void OnDestroy()
    {

    }
}
